<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="CustomerSecondaryCardTable">

    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label">副卡等级</label>
            <div class="layui-input-block">
                <select name="secondary_card_id" >
                    {foreach $secondary_card as $v}
                    <option value="{$v.id}" {if isset($vo.secondary_card_id) && $v.id == $vo.secondary_card_id }selected{/if}>{$v.title}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">陪玩名称</label>
            <div class="layui-input-block">
                <select name="power_source_id" lay-search >
                    {foreach $power_source as $v}
                    <option value="{$v.id}" {if isset($vo.power_source_id) && $v.id == $vo.power_source_id }selected{/if}>{$v.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-col-xs5">
                <label class="layui-form-label">已用金额</label>
                <div class="layui-input-block">
                    <input type="text" name="use_amount" value='{$vo.use_amount|default="0.00"}' class="layui-input">
                </div>
            </div>
            <div class="layui-col-xs5">
                <label class="layui-form-label">预存金额</label>
                <div class="layui-input-block">
                    <input type="text" name="prestore_amount" value='{$vo.prestore_amount|default="0.00"}' class="layui-input">
                </div>
            </div>
        </div>

    </div>


    <div class="hr-line-dashed"></div>
    {notempty name='customer_id'}<input type='hidden' value='{$customer_id}' name='customer_id'>{/notempty}
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>{:lang('保存数据')}</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="{:lang('确定要取消编辑吗？')}" data-close>{:lang('取消编辑')}</button>
    </div>
</form>

